<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <script src="../jquery/jquery-3.2.1.min.js"></script>
    <script src="../js/bootstrap.min.js"></script>
    <link rel="stylesheet" href="../css/bootstrap.css">

</head>
<body>

<div class="container">

    <h3>淘宝首页实例</h3>
    <div class="btn-group">
        <button class="btn btn-default">我的淘宝</button>
        <button class="btn btn-default">购物车</button>

        <div class="btn-group">
            <button class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                收藏夹
                <span class="caret"></span>
            </button>
            <ul class="dropdown-menu">
                <li><a href="javaScript:">收藏的宝贝</a></li>
                <li><a href="javaScript:">收藏的店铺</a></li>
            </ul>
        </div>

        <button class="btn btn-default">商品分类</button>
        <button class="btn btn-default">卖家中心</button>
    </div>

    <h3>垂直分组</h3>
    <div class="btn-group-vertical">

        <button class="btn btn-default">我的淘宝</button>
        <button class="btn btn-default">购物车</button>

        <div class="btn-group">
            <button class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                收藏夹
                <span class="caret"></span>
            </button>
            <ul class="dropdown-menu">
                <li><a href="javaScript:">收藏的宝贝</a></li>
                <li><a href="javaScript:">收藏的店铺</a></li>
            </ul>
        </div>

        <button class="btn btn-default">商品分类</button>
        <button class="btn btn-default">卖家中心</button>
    </div>

    <h3>等分按钮a标签样式</h3>
    <div class="btn-group btn-group-justified">
        <a href="javaScript:" class="btn btn-primary" role="button">我的淘宝</a>
        <a href="javaScript:" class="btn btn-primary" role="button">购物车</a>
        <a href="javaScript:" class="btn btn-primary" role="button">商品分类</a>
        <a href="javaScript:" class="btn btn-primary" role="button">卖家中心</a>
    </div>
    <h3>等分按钮button标签样式(需要更改代码方式)</h3>
    <div class="btn-group btn-group-justified">
        <div class="btn-group">
            <button class="btn btn-primary" role="button">我的淘宝</button>
        </div>
        <div class="btn-group">
            <button class="btn btn-primary" role="button">购物车</button>
        </div>
        <div class="btn-group">
            <button class="btn btn-primary" role="button">商品分类</button>
        </div>
        <div class="btn-group">
            <button class="btn btn-primary" role="button">卖家中心</button>
        </div>
    </div>
    <h3>按钮下拉菜单</h3>
    <div class="btn-group">
        <button class="btn btn-primary dropdown-toggle" data-toggle="dropdown">
            下拉菜单
            <span class="caret"></span>
        </button>
        <ul class="dropdown-menu">
            <li><a href="javaScript:">收藏的宝贝</a></li>
            <li><a href="javaScript:">收藏的店铺</a></li>
        </ul>
    </div>
    <h3>按钮上拉菜单</h3>
    <div class="btn-group dropup">
        <button class="btn btn-success dropdown-toggle" data-toggle="dropdown">
            上拉菜单
            <span class="glyphicon glyphicon-triangle-top"></span>
        </button>
        <ul class="dropdown-menu">
            <li><a href="javaScript:">收藏的宝贝</a></li>
            <li><a href="javaScript:">收藏的店铺</a></li>
        </ul>
    </div>
    <h3>下拉菜单二</h3>
    <div class="dropdown">
        <div class="btn-group">
            <button class="btn btn-primary">收藏夹</button>
            <button class="btn btn-primary dropdown-toggle" data-toggle="dropdown">
                <span class="caret"></span>
            </button>
            <ul class="dropdown-menu">
                <li><a href="javaScript:">收藏的宝贝</a></li>
                <li><a href="javaScript:">收藏的店铺</a></li>
            </ul>
        </div>
    </div>
    <h3>下拉菜单(大小变化)</h3>
    <div class="dropdown">
        <div class="btn-group btn-group-xs">
            <button class="btn btn-primary">收藏夹</button>
            <button class="btn btn-primary dropdown-toggle" data-toggle="dropdown">
                <span class="caret"></span>
            </button>
            <ul class="dropdown-menu">
                <li><a href="javaScript:">收藏的宝贝</a></li>
                <li><a href="javaScript:">收藏的店铺</a></li>
            </ul>
        </div>
    </div>
</div>
</body>
</html>